<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="com.jxLC.Action.*"%>
<%@ page language="java" import="com.jxLC.Model.*" %>
<%@ page language="java" import="com.jxLC.Service.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
FilesService filesService=new FilesService();
List<Files> files=filesService.getfile();
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>:::江西低碳:::</title>
	<link href="/mycss/my.css"  rel="stylesheet" type="text/css" />
	<link href="/mycss/details.css"  rel="stylesheet" type="text/css" />
	<script type="text/javascript" charset="utf-8" src="/Kindeditor/kindeditor.js"></script>
	<script type="text/javascript" src="/myjs/my.js"></script>
	<style type="text/css">
	 #ma{ height:520px;padding-top:80px;background-image: url(../my.photo/photo/b.jpg)}
	 table{ font-size:20px;font-family:"楷体"; font-weight: bold;}
    </style>
    <script type="text/javascript">
	function checkForm(myform) {				
                
				if(myform.CNum.value == "") {
					alert('账号必须输入！');
					myform.CNum.focus();
					return false;
				}
				if(myform.CAdmin_password.value == "") {
					alert('密码必须输入！');
					myform.CAdmin_password.focus();
					return false;
				}
				return true;	
			}
	</script>
  </head>
  
 <body style="background-color:#EBFCF3">
   <s:include value="/admin/header.jsp"></s:include>
	<center><div id="m">
	     <div id="ma">
	    <h2 align="center">==管理员登陆==</h2>
	    <%
			Object obj = request.getAttribute("errorMessage");
		%>
	    <form action="login"  method="post" onsubmit="return checkForm(this);">
		<table align="center">
		<%if(obj != null){ %>
			<tr>
				<td colspan="22">
					<span style="color : red; font-weight : bold"><%=obj %></span>
				</td>
			</tr>
			<%} %>
			<tr>  
				<td>
					<img  src="/my.photo/photo/logo/icons/group.png">&nbsp;管 理 员 帐  号
				</td>
				<td>
					<input type="text" style="border: 1px solid green;width:150px; height:25px; padding-top: 4px;" name="CNum">
				</td>
			</tr>
			<tr>
				<td>
					<img src="/my.photo/photo/logo/icons/key_go.png">&nbsp;管 理 员 密 码
				</td>
				<td>
					<input type="password" style="border: 1px solid green;width:150px;height: 25px; padding-top: 4px;" name="CAdmin_password">
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center">
				    <br>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="登录" style="width:100px;height:30px;">
					<input type="reset" value="清空" style="width:100px;height:30px;">
				</td>
			</tr>
		</table>
		</form> 
	    </div> 
	
	</div></center>
	<s:include value="/admin/tail2.jsp"></s:include>
</body>
</html>
